package File;

public class Emp {
	String name;
	int age;
	final static int LEN=8;
	public Emp(){}
	public Emp(String name, int age) {
		/*if(name.length()>LEN){
			name=name.substring(0,8);
		}else{
			while(name.length()<LEN);
			name=name+"\u0000";
		}*/
		this.name = name;
		this.age = age;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	
	@Override
	public String toString(){
		return "Emp [name="+name+",age="+age+"]";
		
	}
}
